//
//  UIView+BorderLine.h
//  WisdomStar
//
//  Created by 谭飞 on 2018/10/22.
//  Copyright © 2018年 zhangliwen. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

typedef NS_OPTIONS(NSUInteger, UIBorderSideType) {
    UIBorderSideTypeAll = 0,
    UIBorderSideTypeTop = 1 << 0,
    UIBorderSideTypeBottom = 1 << 1,
    UIBorderSideTypeLeft = 1 << 2,
    UIBorderSideTypeRight = 1 << 3,
};

@interface UIView (BorderLine)

// 设置边框
- (void)setBorder:(UIColor *)color borderWidth:(CGFloat)width borderType:(UIBorderSideType)type;

// 设置圆角边框
- (void)setRoundBorder:(UIColor *)color radius:(CGFloat)radius;

@end

NS_ASSUME_NONNULL_END
